package com.xc.content.convert;

import com.xc.content.bo.CourseBO;
import com.xc.content.bo.CourseBaseBO;
import com.xc.content.dto.CourseBaseDTO;
import com.xc.content.dto.CourseDTO;
import com.xc.content.entity.CourseBase;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @Author: MangoPie
 * @CreateTime: 2024-12-26
 * @Version: 1.0
 * 课程信息转换类
 */
@Mapper
public interface CourseBaseConverter {

    CourseBaseConverter INSTANCE = Mappers.getMapper(CourseBaseConverter.class);

    List<CourseBaseDTO> courseBaseListToDTOList(List<CourseBaseBO> courseBaseBOList);

    CourseBaseBO courseBaseDTOToBO(CourseBaseDTO courseBaseDTO);
    CourseBO courseDTOToBO(CourseDTO courseDTO);



}
